'use strict'
// Template version: 1.2.6
// see http://vuejs-templates.github.io/webpack for documentation.

const path = require('path')

module.exports = {
  dev: {
   assetsSubDirectory: 'static',
    assetsPublicPath: '/',
    proxyTable: {},

   host: 'localhost',port: 9528,autoOpenBrowser: true,
    errorOverlay: true,
    notifyOnErrors: false,
    poll: false,// Use Eslint Loader?
   // linting errors and warnings will be shown in the console.
    useEslint: true,
   // in the browser.
    showEslintErrorsInOverlay: false,

    /**
     * Source Maps
     */

   devtool: 'cheap-source-map',

   // with this option, according to the CSS-Loader README
   // In our experience, they generally work as expected,
   cssSourceMap: false
  },

  build: {
   index: path.resolve(__dirname, '../dist/index.html'),

   assetsRoot: path.resolve(__dirname, '../dist'),
    assetsSubDirectory: 'static',

    /**
     * You can set by youself according to actual condition
     * You will need to set this if you plan to deploy your site under a sub path,
     * for example GitHub pages. If you plan to deploy your site to https://foo.github.io/bar/,
     * then assetsPublicPath should be set to "/bar/".
     * In most cases please use '/' !!!
     */
    assetsPublicPath: '/',

    /**
     * Source Maps
     */

    productionSourceMap: false,
   devtool: 'source-map',

   // Surge or Netlify already gzip all static assets for you.
   // npm install --save-dev compression-webpack-plugin
    productionGzip: false,
    productionGzipExtensions: ['js', 'css'],

   // View the bundle analyzer report after build finishes:
   // Set to `true` or `false` to always turn it on or off
    bundleAnalyzerReport: process.env.npm_config_report || false,

   generateAnalyzerReport: process.env.npm_config_generate_report || false
  }
}
